package com.service.cook.imp;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.dao.cook.CookDaoZ;
import com.po.CookZ;
import com.service.cook.CookServiceZ;
@Service
public class cookServiceImpZ implements CookServiceZ{
	@Resource(name="cookDaoImpZ")
	private CookDaoZ cookDao;
	@Override
	public CookZ findCook(CookZ co) {	
		CookZ cook = cookDao.findCookInfo(co);
		return cook;
	}
	@Override
	public int updateCook(CookZ co) {
		// TODO Auto-generated method stub
		int count=cookDao.updateCook(co);
		if(count>0)
			return 1;
		return 0;
	}

}
